package org.ykh.oos.pojo.dto;

import lombok.Getter;
import lombok.Setter;

/**
 * @author ykh
 * 更多请参考：https://help.aliyun.com/zh/oss/developer-reference/callback?spm=a2c4g.11186623.0.i7#section-btz-phx-wdb
 */
@Getter
@Setter
public class OssCallbackDto {
    private String bucket;
    private String filename;
    private String size;
    private String mimeType;


    private String height;
    private String width;

    public static String forUrlParam() {
        return "bucket=${bucket}&filename=${object}&size=${size}&mimeType=${mimeType}&height=${imageInfo" +
                ".height}&width=${imageInfo" +
                ".width}";
    }
}
